import re
pattern = r"(黑客)|(抓包)|(监听)|(Trojan)"
about = "我是一名程序员，我喜欢看黑客方面的图书，想研究一下Trojan"
sub = re.sub(pattern, "@_@", about)
print(sub)